@import "./transition";
@import "./sidebar";
@import "./reset";
@import "./dark";

.app-container {
  padding: 10px;
}

.search-container {
  padding: 18px 0 0 10px;
  margin-bottom: 10px;
  background-color: var(--el-bg-color-overlay);
  border: 1px solid var(--el-border-color-light);
  border-radius: 4px;
  box-shadow: var(--el-box-shadow-light);
}

.table-container > .el-card__header {
  padding: calc(var(--el-card-padding) - 8px) var(--el-card-padding);
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32 160 255);
  }
}

@font-face {
  font-family: fan;
  src: url(@/assets/font/YouSheBiaoTiHei-2.ttf);
}

.titleShadow {
  color: #ffffff;
  font-family: fan;
  text-shadow: 3px 3px 2px #205efd;
}

.color1 {
  color: #fae17d;
}

.color2 {
  color: #2cd5ff;
}

.color3 {
  color: #2dfa9a;
}

.popup {
  background: url(@/assets/overview_map_window.png) no-repeat;
  background-size: 100% 100%;
  width: 350px;
  padding: 0 20px;
  color: #fff;

  .popup-title {
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    line-height: 50px;

    .state {
      color: #fae17d;
    }
  }

  .popup-con {
    padding: 20px 0;
    font-size: 14px;

    .d-ul {
      margin-top: 30px;
      display: flex;

      .d-li {
        padding-left: 12px;

        &:nth-child(1) {
          margin-right: 20px;
        }

        position: relative;

        &::before {
          content: "";
          position: absolute;
          left: 0;
          top: 4px;
          border-top: 6px solid transparent;
          border-bottom: 6px solid transparent;
          border-left: 6px solid #fae17d;
          border-right: 6px solid transparent;
        }

        .d-li-text {
          line-height: 24px;

          .num {
            color: #28ebe4;
            font-size: 24px;
            font-weight: bold;
          }

          .unit {
            color: #28ebe4;
            font-size: 16px;
            font-weight: bold;
            margin-left: 5px;
          }
        }
      }
    }
  }
}

.marker {
  background: url(@/assets/map_gssp_yielddata.png);
  background-size: 100% 100%;
  width: 100px;
  height: 46px;

  &::after {
    content: "";
    position: absolute;
    bottom: -24px;
    left: 50%;
    margin-left: -12px;
    background: url(@/assets/map_gssp_waterdata.png);
    background-size: 100% 100%;
    width: 24px;
    height: 24px;
  }

  .marker-title {
    color: #fff;
    text-align: center;
    padding-top: 5px;
    font-size: 14px;
    font-weight: bold;

    .name {
      color: #28ebe4;
    }
  }
}

.c-left {
  padding-top: 20px;
}

::-webkit-scrollbar {
  width: 5px !important;
  height: 5px !important;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px !important;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
  background: rgba(0, 0, 0, 0.3) !important;
}

::-webkit-scrollbar-thumb:hover {
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
  background: rgba(0, 0, 0, 0.5) !important;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
  border-radius: 5px !important;
  background: rgba(0, 0, 0, 0.1) !important;
}
